package mest.dao.cxj;

import mest.VO.cxj.PlanCostOrderRecordVO;
import mest.entity.PlanCostOrderRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PlanCostOrderRecordDao {


    /**
     * 添加计划费用单记录
     *
     * @param pcor
     * @param theirDb
     * @return
     */
    Integer insertPlanCostorderRecord(@Param("pcor") PlanCostOrderRecord pcor, @Param("theirDb") String theirDb);


    /**
     * 根据ID查询所有计划费用单记录
     *
     * @return
     */
    List<PlanCostOrderRecordVO> selectAllPlanCostOrderRecordById(@Param("page") Integer page, @Param("limit") Integer limit,
                                                               @Param("pcId") Integer pcId, @Param("theirDb") String theirDb);

    /**
     * 根据ID查询所有计划费用单数量
     *
     * @return
     */
    Integer selectCountPlanCostOrderRecordById(@Param("pcId") Integer pcId, @Param("theirDb") String theirDb);

}